﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;

namespace PeopleEntity
{
    public class News
    {
        public News(){}
        public News(DateTime date, string title, string content)
        {
            Content = content;
            Title = title;
            Date = date;
            Id = Guid.NewGuid();
        }

        public Guid Id { get; private set; }
        public DateTime Date { get; private set; }
        public string Title { get; private set; }
        [DataType(DataType.MultilineText)]
        public string Content { get; private set; }
    }
}
